home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / catD / btopr.z / btopr
Encoding:
Text File  |  1998-10-30  |  2.8 KB  |  66 lines

  1.  
  2.  
  3.  
  4. bbbbttttoooopppprrrr((((DDDD3333))))                                                            bbbbttttoooopppprrrr((((DDDD3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _bbbb_tttt_oooo_pppp_rrrr - convert size in bytes to size in pages (round up)
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
  13.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_dddd_dddd_iiii_...._hhhh_>>>>
  14.      _uuuu_llll_oooo_nnnn_gggg______tttt _bbbb_tttt_oooo_pppp_rrrr_((((_uuuu_llll_oooo_nnnn_gggg______tttt _n_u_m_b_y_t_e_s_))))_;;;;
  15.  
  16.    AAAArrrrgggguuuummmmeeeennnnttttssss
  17.      _n_u_m_b_y_t_e_s  Size in bytes to convert to equivalent size in pages.
  18.  
  19. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.      _bbbb_tttt_oooo_pppp_rrrr returns the number of pages that are contained in the specified
  21.      number of bytes, with upward rounding if the byte count is not a page
  22.      multiple.
  23.  
  24.    RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
  25.      The return value is the number of pages.  There are no invalid input
  26.      values, and therefore no error return values.
  27.  
  28. UUUUSSSSAAAAGGGGEEEE
  29.    LLLLeeeevvvveeeellll
  30.      Initialization, Base or Interrupt.
  31.  
  32.    SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn CCCCoooonnnnssssttttrrrraaaaiiiinnnnttttssss
  33.      Does not sleep.
  34.  
  35.      Driver-defined basic locks, read/write locks, and sleep locks may be held
  36.      across calls to this function.
  37.  
  38.    EEEExxxxaaaammmmpppplllleeeessss
  39.      If the page size is 2048, then _bbbb_tttt_oooo_pppp_rrrr_((((_4444_0000_9999_6666_)))) and _bbbb_tttt_oooo_pppp_rrrr_((((_4444_0000_9999_5555_)))) both return 2,
  40.      and _bbbb_tttt_oooo_pppp_rrrr_((((_4444_0000_9999_7777_)))) returns 3.  _bbbb_tttt_oooo_pppp_rrrr_((((_0000_)))) returns 0.
  41.  
  42. RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
  43.      _bbbb_tttt_oooo_pppp(D3), _pppp_tttt_oooo_bbbb(D3)
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.